<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 


 



{template 'header.html'}


<style>
	.music .type a{
		background:#eee; padding:1px 5px;
	}
	.music ul .item{
		border-bottom:#eee solid 1px;
		padding:0 0 20px 0;
		margin:20px 0 0 0;
		height:auto; overflow:hidden; clear:both;
	}
	.music ul .item p{
		margin:0; padding:0;
	}
	.music ul .item .thumb{
		float:left;
		display:inline;
		width:120px;
		height:150px;
		position:relative;
		overflow:hidden;
	}
	.music ul .item .thumb img{ /*width:150px; height:200px;*/
	}
	.music ul .item .thumb a em {
		-moz-transform: skewx(-25deg);
		-moz-transition: all 0s ease 0s;
		background-image: -moz-linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
		height: 150px;
		left: -120px;
		position: absolute;
		width: 120px;
	}
	.music ul .item .thumb a:hover em {
		-moz-transition: all 0.5s ease 0s;
		left: 120px;
	}
	
	.music ul .item .desc{
		width:400px;
		float:left; display:inline; margin:0 0 0 20px;
	}
</style>


<div class="container"> 
    <div class="main music"> 
    		
            <div class="head">电影分类</div>
            <ul class="type">
            	<li>按类型： <a href="#">全部</a> <a href="#">动作</a> 科幻 战争 爱情 喜剧 剧情 悬疑 预告 超高清</li>
                <li>按地区： 大陆 欧美 港台 日韩 其他</li>
                <li>按语言： 国语 英语 法语 粤语 日语 韩语</li>
                <li>按年代： 2011 2010 2009 2008 2007 2006 2005 2004 2003 2002 更早</li>
            </ul>
   			
            <div class="head">电影列表</div>
			<ul>
          	
              {php $chids = subcatid(0)}
              {get sql="SELECT musicid,catid,typeid,areaid,title,style,thumb,stars,keywords,singer,description,userid,updatetime,inputtime,url FROM `table_music` WHERE  status=99 ORDER BY updatetime DESC" rows="20" page="$page"}
              {php $keywords = explode(',',$r[keywords]);}   
              {php $singer = explode(',',$r[singer]);}   
                <li class="item"> 
                    <div class="thumb">
                        <a href="{url($r[url])}">
                         <img src="{php echo $r[thumb] ? thumb($r[thumb],120,'') : thumb('misc/nopic.gif',120,'')}"/>  
                         <em></em>
                        </a>
                    </div>
                    <div class="desc">
                    	<strong><a href="{url($r[url])}">{$r[title]}</a></strong>
                        
                       <p>评分等级:{$r[stars]}</p>
                       
                       {if $singer}
                        <p>演员:
                            {loop $singer $k $v}
                            <a href="{url("?module=music&file=singer&action=tag&name=$v")}">{$v}</a>
                            {/loop}
                        </p>
                        {/if}
                        
                       <p>时间：2012-3-21 0:29:00</p>
                       <div>{$r[description]}</div> 
                       
                       {if $keywords}
                        <p>标签:
                            {loop $keywords $k $v}
                            <a href="{url("?module=music&file=singer&action=tag&name=$v")}">{$v}</a>
                            {/loop}
                        </p>
                        {/if}
                        
                       <div class="keywords"><a href="{url("?module=music&action=play&musicid=$r[musicid]")}">播放</a> <a href="#">详情</a></div>
                       
                    </div>
                    
              </li>
              {/get}
            </ul>
            
            <div class="pagination">{$pages}</div>

    </div>
    
    <div class="aside"> 
        
    <div class="head">最新公告</div>
    	<ul>
	  {get sql="select announceid,title,addtime from table_announce order by addtime desc" rows="10"}
		<li><a href="{url("?module=announce&announceid=$r[announceid]")}">{$r[title]}</a> ({date('m-d',$r[addtime])})</li>
	  {/get}
      </ul>
      
       <div class="mod">
            <div class="head"><span>会员列表</span> · · · · · ·(<a href="{url("?module=member&action=list")}">更多</a>)</div>
            <ul class="body users">
          <!--{get sql="select * from table_member where avatar <> '' order by userid ASC " rows="12"}-->
            <li>
             <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{avatar($r[userid])}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}" class="add">关注TA</a>-->
             <!--<p><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a></p>-->
            </li>
          <!--{/get}-->
          </ul>
        </div>
          
     <div class="mod">
        <div class="head"><span>商家列表</span><a href="{url('?module=member&action=apply')}">申请»</a></div>
        <ul class="body users">
      <!--{get sql="select * from table_member" rows="12"}-->
        <li>
         <a href="{url("?module=space&userid=$r[userid]")}"><img src="{avatar($r[userid])}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
         <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}" class="add">关注TA</a>-->
         <!--<p><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a></p>-->
        </li>
      <!--{/get}-->
      </ul>
    </div>
      
    
     <div class="mod">
    	<div class="head">热门阅读</div>
        <ul class="body">
          <!--{get sql="select title,url,hits from table_content order by hits desc" rows="10"}-->
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li> 
          <!--{/get}-->
        </ul>
    </div>
          
          
        <div class="head">最新评论</div>
    	<ul>
          <!--{get sql="select commentid,content from table_comment order by addtime desc" rows="10"}-->
            <li><a href="#">{htmlspecialchars(trim($r[content]))}</a></li>
          <!--{/get}-->
          </ul>
          
         
        <div class="mod">
            <div class="head">热门标签</div>
            <div class="body keywords">
          <!--{get sql="select tag,hits from table_keyword order by listorder desc,hits desc" rows="10"}-->
            <a href="{url("?module=content&action=tag&name=".urlencode($r[tag]))}">{$r[tag]} <small>({$r[hits]})</small></a>
          <!--{/get}-->
          </div>
        </div>
        
        <div class="head">功能</div>
    	<ul>
        	<li><a href="admin.php">管理员登陆</li>    
        	<li><a href="{url("?module=rss")}">网站RSS</li>    
        </ul>
          
          
    </div>
</div>


{template 'footer.html'}

